<%--
  Created by IntelliJ IDEA.
  User: XiangLang15078435014
  Date: 2021/11/1
  Time: 17:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
    <head>
        <title>Title</title>
    </head>
    <body>
        <%

            session.setAttribute("idvalue","方峻");

            session.setAttribute("sex","男");

            session.setAttribute("hobby","看书、旅游、游戏");

        %>
        <%
            Object id=session.getAttribute("idvalue") ;
            Object sex=session.getAttribute("sex") ;
            Object hobby=session.getAttribute("hobby") ;
            if(id!=null ){
                out.println("姓名："+id.toString()) ;
                out.println("<br>") ;
                out.println("性别："+sex.toString()) ;
                out.println("<br>") ;
                out.println("兴趣："+hobby.toString()) ;
            }else{
                out.println("无设定seeion数据 !!") ;
            }

        %>
    </body>
</html>
